| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

ConversionUtils.h
1 // ConversionUtils.h
3 //
5
6 namespace nkImages
7 {
11 class ConversionUtils final
12 {
13 public :
14
15 // Conversions
24 static nkMaths::Vector convertPixel (const nkMaths::Vector& pix, PIXEL_FORMAT inFormat, PIXEL_FORMAT outFormat) ;
25
37 static Image convertImage (const ImageView& image, PIXEL_FORMAT outFormat, const AlignmentDescriptor& alignmentDescriptor = AlignmentDescriptor()) ;
38 } ;
39 }
nkImages::ConversionUtils::convertImage
static Image convertImage(const ImageView &image, PIXEL_FORMAT outFormat, const AlignmentDescriptor &alignmentDescriptor=AlignmentDescriptor())
nkImages::ImageView
Holds all information required for an image, with no ownership over the data.
Definition: ImageView.h:14
nkImages::ConversionUtils
Utility class offering helpers for conversions.
Definition: ConversionUtils.h:12
nkImages::AlignmentDescriptor
Holds information about alignment constraints.
Definition: AlignmentDescriptor.h:12
nkImages
Encompasses all API of component NilkinsImages.
Definition: BmpEncoder.h:7
nkImages::ConversionUtils::convertPixel
static nkMaths::Vector convertPixel(const nkMaths::Vector &pix, PIXEL_FORMAT inFormat, PIXEL_FORMAT outFormat)
nkImages::PIXEL_FORMAT
PIXEL_FORMAT
Lists formats for pixels.
Definition: PixelFormat.h:16
nkMaths::Vector
A 4-component vector class, with floats.
Definition: Vector.h:12
nkImages::Image
Holds all information required for an image, with ownership over the data.
Definition: Image.h:14